package com.amado.course50java8;

import java.math.BigDecimal;
import java.util.Arrays;
import java.util.List;
import java.util.Objects;
import java.util.function.BinaryOperator;
import java.util.stream.Stream;

public class Java811StreamAllMatch {

    public static void main(String[] args) {
        one();
    }

    public static void one() {
        System.out.println(Arrays.asList(1,1,1).stream().allMatch(Integer.valueOf(1)::equals));
        System.out.println(Arrays.asList(1,2,3).stream().anyMatch(Integer.valueOf(1)::equals));
        System.out.println(Arrays.asList(2,3).stream().anyMatch(Integer.valueOf(1)::equals));
    }

}
